<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <title>个人中心</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <script src="../statics/js/rem.js"></script>
    <script src="../statics/js/jquery.min.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="../statics/css/base.css"/>
    <link rel="stylesheet" type="text/css" href="../statics/css/page.css"/>
    <link rel="stylesheet" type="text/css" href="../statics/css/all.css"/>
    <link rel="stylesheet" type="text/css" href="../statics/css/mui.min.css"/>
    <link rel="stylesheet" type="text/css" href="../statics/css/loaders.min.css"/>
    <link rel="stylesheet" type="text/css" href="../statics/css/loading.css"/>
    <link rel="stylesheet" type="text/css" href="../statics/slick/slick.css"/>
	<script type="text/javascript" src="../statics/js-pzz/foot.js"></script>
	<link type="text/css" href="../statics/pzz-css/foot.css">
	<script type="text/javascript">
		$(window).load(function(){
			$(".loading").addClass("loader-chanage")
			$(".loading").fadeOut(300)
		})
	</script>
</head>
<!--loading页开始-->
<div class="loading">
	<div class="loader">
        <div class="loader-inner pacman">
          <div></div>
          <div></div>
          <div></div>
          <div></div>
          <div></div>
        </div>
	</div>
</div>
<!--loading页结束-->

<%
	Object name = session.getAttribute("user");
	if (name == null) {
		out.print("<script>alert('请登录');location='../jsp/sign.jsp'</script>");
	}
%>
	<body>
		<div class="center-header clearfloat" id="header">
			<a href="<%=path%>/jsp/set.jsp?liindex=3" class="fr shezhi">设置</a>
			<div class="top fl clearfloat box-s">
				<a href="<%=path%>/jsp/personaldata.jsp">
					<div class="tu fl">
						<span></span>
						<img src="<%=path%>/statics/fileUplodaImage/${user.image}"/>
					</div>
					<p class="tit fl">${user.usersName}</p>
					<i class="iconfont icon-arrowright fr"></i>
				</a>
			</div>
			<div class="bottom clearfloat">
				<ul>
					<li>
						<a href="../orders/rent-order.html" class="clearfloat">
							<p><c:if test="${count==0}">0</c:if>
                                <c:if test="${count!=0}">${count}</c:if></p>
							<p>房租订单</p>
						</a>
					</li>
					<li>
						<a href="../orders/w-order.html" class="clearfloat">
                            <p><c:if test="${countW==0}">0</c:if>
                                <c:if test="${countW!=0}">${countW}</c:if></p>
							<p>待付款</p>
						</a>
					</li>
					<%--<li>
						<a href="empty-list.jsp" class="clearfloat">
							<p>待评价</p>
						</a>
					</li>--%>
					<li>
						<a href="../orders/y-order.html" class="clearfloat">
                            <p><c:if test="${countY==0}">0</c:if>
                                <c:if test="${countY!=0}">${countY}</c:if></p>
							<p>已完成</p>
						</a>
					</li>
				</ul>
			</div>
		</div>
		
		<div class="clearfloat pcenter" id="main">
			<div class="p-list clearfloat box-s">				
				<i class="iconfont icon-caifu fl ben"></i>
				<span class="fl">我的资产</span>
			</div>
			<div class="p-fenlei clearfloat">
				<ul>
					<li>
						<a href="profit.jsp" class="clearfloat">
							<p>￥00.00</p>
							<p>余额</p>
						</a>
					</li>
					<li>
						<a href="#" class="clearfloat">
							<p>0</p>
							<p>积分</p>
						</a>
					</li>
					<li>
						<a href="coupon.jsp" class="clearfloat">
							<p>0张</p>
							<p>优惠券</p>
						</a>
					</li>
				</ul>
			</div>
			<div class="p-list p-listwo clearfloat box-s">
				<a href="<%=path%>/com/mycollection.html" class="clearfloat">
					<i class="iconfont icon-favorite fl xing"></i>
					<span class="fl">我的收藏</span>
					<i class="iconfont icon-arrowright fr you"></i>
				</a>
			</div>
			<div class="p-list p-listhree clearfloat box-s">
				<a href="../com/sjhousecom.html" class="clearfloat">
					<i class="iconfont icon-hetongguanli fl hetongguanli"></i>
					<span class="fl"<c:if test="${com>0}">style="color: red;" </c:if> >
						消息<c:if test="${com>0}"><span class="label label-danger">${com}条未读消息</span></c:if></span>
					<i class="iconfont icon-arrowright fr you"></i>
				</a>
			</div>
			<div class="p-list p-listwo clearfloat box-s">
				<a<%-- href="pay-rent.jsp"--%> class="clearfloat">
					<i class="iconfont icon-money fl money"></i>
					<span class="fl">付房租</span>
					<i class="iconfont icon-arrowright fr you"></i>
				</a>
			</div>
			<div class="p-list p-listhree clearfloat box-s">
				<a href="../com/comlist.html" class="clearfloat">
					<i class="iconfont icon-hetongguanli fl hetongguanli"></i>
					<span class="fl">我的评价</span>
					<i class="iconfont icon-arrowright fr you"></i>
				</a>
			</div>
			<div class="p-list p-listhree clearfloat box-s">
				<a href="../house/entrustPage.html" class="clearfloat">
					<i class="iconfont icon-weituoguanli fl weituoguanli"></i>
					<span class="fl">我的委托管理</span>
					<i class="iconfont icon-arrowright fr you"></i>
				</a>
			</div>
			
			<div class="p-list p-listwo clearfloat box-s">
				<a <%--href="extension.jsp"--%> class="clearfloat">
					<i class="iconfont icon-gonggao fl gonggao"></i>
					<span class="fl">我要推广</span>
					<i class="iconfont icon-arrowright fr you"></i>
				</a>
			</div>
			<div class="p-list p-listhree clearfloat box-s">
				<a <%--href="about.jsp"--%> class="clearfloat">
					<i class="iconfont icon-gerenzhongxin fl gerenzhongxin"></i>
					<span class="fl">关于我们</span>
					<i class="iconfont icon-arrowright fr you"></i>
				</a>
			</div>
		<jsp:include page="foot.jsp"></jsp:include>
			<script type="text/javascript" src="
			../statics/js/jquery-1.12.4.js" ></script>
			<script>
                var  index="${param.liindex}"==""? "0":"${param.liindex}"
                $("#footul li:eq('"+index+"')").addClass("active");
			</script>
	</body>
	<script type="text/javascript" src="../statics/js/jquery-1.8.3.min.js" ></script>
	<script type="text/javascript" src="../statics/slick/slick.min.js" ></script>
	<script type="text/javascript" src="../statics/js/jquery.leanModal.min.js"></script>
	<script type="text/javascript" src="../statics/js/tchuang.js" ></script>
	<script type="text/javascript" src="../statics/js/hmt.js" ></script>
</html>
